#SIG HPC
#Pandemic Simulation
#Main file to run the server
#To run: python server.py

from sys import *

#MPI imports, I don't know what they are or how to use them
#from mpi4py import *
#import numpy

#Importing grid functionality
from grid import *	

#These do not have to be equal, works with non-square grid
ROWS = 16
COLS = 16

#I don't feel like dealing with odd numbers when splitting quadrants
if (ROWS % 2) != 0 or (COLS % 2) != 0:
	print "ROWS and COLS need to be divisible by 2"
	exit(1)

grid = Grid(ROWS,COLS)
grid.populate()
grid.printGrid()

quad1 = grid.getQuad(1)
quad2 = grid.getQuad(2)
quad3 = grid.getQuad(3)
quad4 = grid.getQuad(4)

print "\nQuadrant 1:"
quad1.printGrid()
print "Quadrant 2:"
quad2.printGrid()
print "Quadrant 3:"
quad3.printGrid()
print "Quadrant 4:"
quad4.printGrid()